<?php
class AddUser extends Action {
	/*
	 * (non-PHPdoc) @see Action::execute()
	 */
	public function execute($params) {
		check_login ( ADMIN_LOGIN_PAGE );
		$data = sess_del ( 'user_info', array ('status' => 0 ) );
		$data ['user'] = $data;
		$data ['error'] = sess_del ( 'user_error', array () );
		$data ['error_cls'] = ModelValidator::getErrorCls ( $data ['error'] );
		$data ['page_tip_info'] = sess_del ( 'page_tip_info' );
		return new SmartyView ( $data, 'users/AddUser' );
	}
}